﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using System.Windows.Media.Imaging;

namespace MoMoTransferVN_WP.page
{
    public partial class detectedPopup : UserControl
    {
        bool status = true;  
        public detectedPopup()
        {
            InitializeComponent();
        }

        private void imgtick_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            status = !status;
            if (status == true)
            {
                imgtick.Source = new BitmapImage(new Uri(@"/Assets/Images/CheckActivated.png", UriKind.Relative));

                btnClose.IsEnabled = true;
            }
            else
            {
                imgtick.Source = new BitmapImage(new Uri(@"/Assets/Images/CheckNormal.png", UriKind.Relative));

                btnClose.IsEnabled = false;
            }
        }

        private void Image_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            this.Visibility = Visibility.Collapsed;
        }
    }
}
